package studentmanager;


//java 里面说的 类型 ？ int String boolean char  java 的jdk 里面定义好的类型

//每一个类的名称 就是 一个类型

//学生的类
public class Student {
    //学号
    private String idNumber;
    //姓名
    private String name;
    //年龄
    private int age;
    //手机号
    private String phoneNumber;

    //构造方法  用于属性的初始化
    public Student(String idNumber, String name, int age, String phoneNumber) {
        this.idNumber = idNumber;
        this.name = name;
        this.age = age;
        this.phoneNumber = phoneNumber;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
}
